using Assets.Scripts.Controllers;
using TMPro;
using UnityEngine;
using UnityEngine.UI;

namespace Assets.Scripts.UI
{
    internal class DayIndicator : MonoBehaviour
    {
        [SerializeField] private TMP_Text _text;
        [SerializeField] private Image _filler;
        [SerializeField] private DayController _controller;

        private void Start()
        {
            _text.text = $"Day {DayController.Day}";
        }

        private void Update()
        {
            _filler.fillAmount = _controller.Progress;
        }
    }
}
